package com.ihrm.system.service;

import com.ihrm.domain.system.response.FaceLoginResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface FaceLoginService {
    //创建二维码
    public com.ihrm.domain.system.response.QRCode getQRCode() throws IOException;

    //根据唯一标识，查询用户是否登录成功
    public FaceLoginResult checkQRCode(String code);

    //扫描二维码之后，使用拍摄照片进行登录
    String loginByFace(String code, MultipartFile attachment) throws IOException;

    //构造缓存key
    String getCacheKey(String code);
}
